package com.ht.pms.core.dto;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 喻尊龙
 * @since 2018-12-20
 */
@ApiModel
@TableName("t_job_time_control")
public class JobTimeControl extends Model<JobTimeControl> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	@ApiModelProperty(required= true,value = "主键")
	private Integer id;
    /**
     * 执行日期
     */
	@TableField("date_now")
	@ApiModelProperty(required= true,value = "执行日期")
	private Date dateNow;
    /**
     * 执行起始时间
     */
	@TableField("date_start")
	@ApiModelProperty(required= true,value = "执行起始时间")
	private Date dateStart;
    /**
     * 执行结束时间
     */
	@TableField("date_end")
	@ApiModelProperty(required= true,value = "执行结束时间")
	private Date dateEnd;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getDateNow() {
		return dateNow;
	}

	public void setDateNow(Date dateNow) {
		this.dateNow = dateNow;
	}

	public Date getDateStart() {
		return dateStart;
	}

	public void setDateStart(Date dateStart) {
		this.dateStart = dateStart;
	}

	public Date getDateEnd() {
		return dateEnd;
	}

	public void setDateEnd(Date dateEnd) {
		this.dateEnd = dateEnd;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "JobTimeControl{" +
			", id=" + id +
			", dateNow=" + dateNow +
			", dateStart=" + dateStart +
			", dateEnd=" + dateEnd +
			"}";
	}
}
